<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" Title="Project Monitoring System"
    Theme="Default" Culture="auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
    Visible="false">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
    <table style="height: 800px; width: 100%;">
        <tr>
            <td style="vertical-align: top; width: 250px; height: 800px;" align="left">
                <asp:Panel ID="Panel1" runat="server" Height="875px" Width="250px" BorderWidth="1px"
                    BorderColor="Black" ScrollBars="Auto" meta:resourcekey="Panel1Resource1">
                    <div style="padding: 10px">
                        <asp:TreeView ID="TreeView1" OnTreeNodePopulate="PopulateNode" SkinID="Simple" ExpandDepth="1"
                            runat="server" OnSelectedNodeChanged="TreeView1_SelectedNodeChanged" OnTreeNodeCollapsed="TreeView1_TreeNodeCollapsed"
                            OnTreeNodeExpanded="TreeView1_TreeNodeExpanded" CssClass="treeview" ImageSet="Simple">
                            <Nodes>
                                <asp:TreeNode SelectAction="Expand" PopulateOnDemand="True" Value="root" Text="root" />
                            </Nodes>
                            <ParentNodeStyle CssClass="treeviewnode" />
                            <SelectedNodeStyle CssClass="treeviewnode" BackColor="Yellow" BorderColor="#404040" />
                            <RootNodeStyle CssClass="treeviewnode" />
                            <NodeStyle CssClass="treeviewnode" />
                        </asp:TreeView>
                    </div>
                </asp:Panel>
                <asp:TextBox ID="txtProjectGroupId" runat="server" CssClass="hidden" ReadOnly="True"
                    meta:resourcekey="txtProjectGroupIdResource1"></asp:TextBox>
                <asp:TextBox ID="txtProjectType" runat="server" CssClass="hidden" ReadOnly="True"
                    meta:resourcekey="txtProjectTypeResource1"></asp:TextBox>
                <asp:TextBox ID="txtProjectCode" runat="server" CssClass="hidden" ReadOnly="True"
                    meta:resourcekey="txtProjectCodeResource1"></asp:TextBox>
            </td>
            <td style="width: 5px;"></td>
            <td style="vertical-align: top; width: 100%; height: 600px;">
                <table width="100%">
                    <tr id="tblTitle">
                        <td width="100%">
                            <asp:Label ID="lblTitle" runat="server" Font-Bold="True" Font-Names="Tahoma,Verdana,Helvetica,Helvetica-Narrow,sans-serif" Font-Size="Small" Width="100%" meta:resourcekey="lblTitleResource1"></asp:Label>
                        </td>
                    </tr>
                    <tr width="100%">
                        <td width="100%" align="left">
                            <asp:ImageButton ID="ibNewProject" runat="server" ImageUrl="~/Images/p_NewProject-en-us.gif"
                                OnClick="ibNewProject_Click" meta:resourcekey="ibNewProjectResource1" />
                            <asp:ImageButton ID="ibProjectInfo" runat="server" ImageUrl="~/Images/p_ProjInfo-en-us.gif"
                                OnClick="ibProjectInfo_Click" meta:resourcekey="ibProjectInfoResource1" Visible="False" />
                            <asp:ImageButton ID="ibViewDoc" runat="server" ImageUrl="~/Images/p_ViewDoc-en-us.gif"
                                OnClick="ibViewDoc_Click" meta:resourcekey="ibViewDocResource1" Visible="False" />
                            <asp:ImageButton ID="ibProjectHeaderInfo" runat="server" ImageUrl="~/Images/p_AppProc-en-us.gif"
                                OnClick="ibProjectHeaderInfo_Click" meta:resourcekey="ibProjectHeaderInfoResource1"
                                Visible="False" />
                            <asp:ImageButton ID="ibExpenditure" runat="server" ImageUrl="~/Images/p_Finance-en-us.gif"
                                OnClick="ibExpenditure_Click" meta:resourcekey="ibExpenditureResource1" Visible="False" />
                            <asp:LinkButton ID="lbRespPersons" runat="server" CssClass="hidden" OnClick="lbRespPersons_Click"
                                Width="141px" meta:resourcekey="lbRespPersonsResource1" Text="Responsible Person"></asp:LinkButton>
                            <asp:Button ID="btnHeadingSet" runat="server" CssClass="submit" Text="Procedure Set Template"
                                Font-Overline="False" Font-Size="XX-Small" meta:resourcekey="btnHeadingSetResource3"
                                OnClick="btnHeadingSet_Click" Visible="False" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <asp:Panel ID="Panel2" runat="server" Height="360px" ScrollBars="Auto" Width="100%" Style="display: none" CssClass="modalPopup" meta:resourcekey="Panel2Resource1">
        <asp:Panel ID="Panel3" runat="server" Style="cursor: move; background-color: #DDDDDD; border: solid 1px Gray; color: Black" Width="100%" meta:resourcekey="Panel3Resource1">
            <div>
                <p style="width: 100%">
                    <asp:Label ID="lblCap" runat="server" Text="Choose the Heading Set you would like to add:" meta:resourcekey="lblCapResource1"></asp:Label>
                </p>
            </div>
        </asp:Panel>
        <asp:ObjectDataSource ID="ODSHeadingSet1" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetHeadingSetData" TypeName="IPTableAdapters.HeadingSetTableAdapter"></asp:ObjectDataSource>
        <div style="padding: 3px">
            <asp:Panel ID="Panel4" runat="server" Height="276px" ScrollBars="Both" Width="100%" meta:resourcekey="Panel4Resource1">
                <asp:GridView CssClass="Grid" ID="gvHeadingSet" runat="server" AutoGenerateColumns="False"
                    BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px"
                    CellPadding="3" CellSpacing="2" DataKeyNames="HeadingSet" DataSourceID="ODSHeadingSet1"
                    Height="1px" meta:resourcekey="gvHeadingSetResource1">
                    <FooterStyle CssClass="GridFooterStyle" BackColor="#F7DFB5" ForeColor="#8C4510" />
                    <Columns>
                        <asp:TemplateField HeaderText="Select" meta:resourcekey="TemplateFieldResource1">
                            <ItemStyle HorizontalAlign="Center" />
                            <HeaderStyle CssClass="GridHeaderStyle" HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSelect" runat="server" meta:resourcekey="CheckBox1Resource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="HeadingSet" HeaderText="Heading Set" ReadOnly="True" SortExpression="HeadingSet"
                            meta:resourcekey="BoundFieldResource1" />
                        <asp:BoundField DataField="HeadingSetName" HeaderText="Heading Set Name" SortExpression="HeadingSetName"
                            meta:resourcekey="BoundFieldResource2" />
                    </Columns>
                    <RowStyle CssClass="GridRowStyle" BackColor="#FFF7E7" ForeColor="#8C4510" />
                    <SelectedRowStyle CssClass="GridSelectedRowStyle" BackColor="#738A9C" Font-Bold="True"
                        ForeColor="White" />
                    <PagerStyle CssClass="GridPagerStyle" ForeColor="#8C4510" HorizontalAlign="Center" />
                    <HeaderStyle CssClass="GridHeaderStyle" BackColor="#A55129" Font-Bold="True" ForeColor="White" />
                </asp:GridView>
            </asp:Panel>
        </div>
        <div style="padding: 10px; text-align: center">
            <asp:Button ID="OkButton" runat="server" Text="OK" CssClass="submit" OnClick="OkButton_Click" meta:resourcekey="OkButtonResource1" />
            <asp:Button ID="CancelButton" runat="server" Text="Cancel" CssClass="reset" meta:resourcekey="CancelButtonResource1" />
        </div>
    </asp:Panel>
    <cc1:ModalPopupExtender ID="ModalPopupExtender" runat="server" TargetControlID="btnHeadingSet"
        PopupControlID="Panel2" BackgroundCssClass="modalBackground" CancelControlID="CancelButton"
        DropShadow="True" PopupDragHandleControlID="Panel3" DynamicServicePath="" Enabled="True" />
    <div style="visibility: hidden">
        <asp:Button ID="btnRedirect" runat="server" OnClick="btnRedirect_Click" meta:resourcekey="btnRedirectResource1" />
    </div>
</asp:Content>
